package com.example.administrator;

import android.app.Application;
import android.content.Context;

import com.lzy.okgo.OkGo;


/**
 *
 */
public class BaseApplication extends Application {
    private static BaseApplication instance;
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        context = getApplicationContext();
        init();
    }

    public static BaseApplication getInstance() {
        return instance;
    }

    public static Context getContext() {
        return context;
    }

    private void init() {
        OkGo.getInstance().init(this);

    }

}
